package org.netEase.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.netEase.dao.zhutiDao;
import org.netEase.dao.impl.zhutiDaoImpl;
import org.netEase.entity.zhuti;
@WebServlet(urlPatterns= {"/backstageManager/productbrand.shtml"})
public class indexpbrand extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		zhutiDao zhutiDao = new zhutiDaoImpl();
		List<zhuti> list=zhutiDao.getlist();
		request.setAttribute("list", list);
		request.getRequestDispatcher("/backstageManager/product-brand.jsp").forward(request, response);
		
	}

	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		this.doGet(request, response);
	}
}
